/**
 * Created with IntelliJ IDEA.
 * Description:
 */
public class TestDemo {
    public static void main(String[] args) {
        int a = 1;
        int b = 3;
        double c = 2.0;
        double d = 4.0;
        int max1 = 0;
        double max2 = 0;
        System.out.println(Max(a,b));
        System.out.println(Max(c,d));
        System.out.println(Max(b,c,d));
    }

    public static int Max(int a,int b ){
        return a>b?a:b;
    }

    public static double Max(double c,double d){
        return c>d?c:d;
    }

    public static double Max(int a,double b,double c){
        if(b>=c){
            return (double)a>b?a:b;
        }
        else{
            return (double)a>c?a:c;
        }
    }
}
